<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">CAR MAKE LOGO MANAGEMENT : <?= $this->management_model->get_make('CAR', $company_id)->make; ?></a>
        </h2>
        <div class="block" >
            <form name="admin-form" enctype="multipart/form-data" action="<?= base_url(); ?>admin/management/make_logo" method="post">
                <fieldset>
                    <legend>Upload a logo file</legend>
                    <div >
                        <?php
                        if ($this->session->flashdata('message')) {
                            $msg = $this->session->flashdata('message');
                            echo '<font color="red">' . $msg . '</font>';
                        }
                        ?> 
                    </div>

                    <div class="field" style="float:left;">
                        <label> Company Logo</label>
                        <input type="hidden" name="make_id" value="<?= $company_id; ?>"/>
                        <input type="hidden" name="make_detail" value="<?= $this->management_model->get_make('CAR', $company_id)->make; ?>"/>
                        <input type="file" name="makelogo" value="Browse" /> 
                        <input type="submit" value="Upload Logo" name="insert" />
                    </div>
                    <div style="float:right;">
                        <?php $img = $this->management_model->get_make_image('CAR', $company_id);
                        if ($img != '') { ?>
                            <img style="border: 1px solid #CCC; padding: 3px" src="<?= base_url() ?>assets/images/data/car/company/<?= $img; ?>" height="75" width="188" align="center"/>
                        <?php } ?>
                    </div>
                </fieldset>
            </form>
        </div>
    </div> <!-- END OF BOX -->
</div>